package com.zxq.common.utils.json;


import java.util.List;
import java.util.Map;

public interface Jsonable {

    public static final String STANDARD_PATTERN = "yyyy-MM-dd HH:mm:ss";

    String toJson(Object obj);

    <T> T toObject(String json, Class<T> clazz);

    Map<String, Object> convertToMap(Object fromValue);

    Map<String, Object> convertToMap(String json);

    <T> T toObject(byte[] result, Class<T> clazz);

    <T> List<T> toList(String json, Class<T> clazz);


}
